<template>
  <div id="app">

    <router-view/>
    <Tabbar :items="items" v-show="this.$route.meta.isShowTab"/>
  </div>
</template>

<script>
import Tabbar from "./components/Tabbar";

export default {
  components:{
    Tabbar
  },
  data(){
    return{
      items:[
        {
          title:"首页",
          icon:require("./assets/home.png"),
          icon_active:require("./assets/home_active.png"),
          path:"/"
        },
        {
          title:"分类",
          icon:require("./assets/category.png"),
          icon_active:require("./assets/category_active.png"),
          path:"/category"
        },
        {
          title:"关于",
          icon:require("./assets/about.png"),
          icon_active:require("./assets/about_active.png"),
          path:"/about"
        },
        {
          title:"我的",
          icon:require("./assets/mine.png"),
          icon_active:require("./assets/mine_active.png"),
          path:"/mine"
        }
      ]
    }
  }
}
</script>


<style>
*
{
  margin: 0px;
  padding: 0px;
}
</style>